package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;


@NoteClass("冒险推图")
public class GDAdventure {

    @NoteField("快速作战-快速作战可以获得的挂机时间（分钟）")
    public static int REWARD_TIME;

    @NoteField("快速作战-消耗道具")
    public static String  QUICK_FIGHT_PROP;

    @NoteField(value = "情报任务每小时加速消耗")
    public static String INFO_TASK_ACCELERATE_COST;

    @NoteField(value = "碎钻刷新")
    public static String REFRESH_GOODS_YUANBAO;

    @NoteField(value = "刷新券")
    public static String REFRESH_GOODS_CARD;

    public static int ACTIVITY_FREE_TIMES;
    public static int ACTIVITY_BUY_TIMES;
    public static String ACTIVITY_BUY_CONSUME_STR;

    public static int REFRESH_NUM = 10;

    public static class Type{
        @NoteField("快速作战-消耗道具")
        public static final int OPEN_DAY = 1;
        public static final int ROLE_LEVEL = 2;
        public static final int VIP_LEVEL = 3;
    }

    /** 读取excel中配置的参数 */
    public static void initialize(ParamSheet paramSheet) {
        REWARD_TIME = GDParamTool.getInt(paramSheet,1603, 120);
        QUICK_FIGHT_PROP = GDParamTool.getString(paramSheet,1606,"");
        REFRESH_GOODS_CARD = GDParamTool.getString(paramSheet,80001, "3:100027:1");
        REFRESH_GOODS_YUANBAO = GDParamTool.getString(paramSheet,80000, "0:1:20");
        INFO_TASK_ACCELERATE_COST = GDParamTool.getString(paramSheet, 80003, "0:1:20");
        ACTIVITY_FREE_TIMES = GDParamTool.getInt(paramSheet, 1607, 2);
        ACTIVITY_BUY_TIMES = GDParamTool.getInt(paramSheet, 1608, 2);
        ACTIVITY_BUY_CONSUME_STR = GDParamTool.getString(paramSheet, 1609, "0:2:200");
    }

    public enum RefreshMode{
        /** 免费 */
        FREE(0),
        /** 道具 */
        ITEM(1),
        /** 元宝 */
        M1(2);

        private int v;

        RefreshMode(int v) {
            this.v = v;
        }

        public int getV() {
            return this.v;
        }
    }
}
